#!/usr/bin/python3
# -*- coding:utf-8 -*-
""""
   @Author: 叶建伟
   @Email: yejw46507@hundsun.com
   @Time: 2022/6/21 9:32
   @File: 名单命中统计.py
"""
import time
from 线下客户管理.线下客户共用脚本.open_menu import open_menu
from 基础公共脚本.步骤检查_hui2 import FE

def user_table_hide_columns(input_data=None, ui_expect=None):
    for i in range(1, 7):
        open_menu({'子系统名称': '反洗钱系统', '菜单名称': '首页'})
        time.sleep(1)
        FE.button(idname={'xpath':'//div[@class="list-hit"]/ul[1]/li['+str(i)+']/a'}).click()




def user_table_hide_columns_more(input_data=None, ui_expect=None):
        open_menu({'子系统名称': '反洗钱系统', '菜单名称': '首页'})
        time.sleep(1)
        FE.button(idname={'xpath':'//div[@class ="list-hit"]/p/a'}).click()
        time.sleep(1)
        search_form = FE.form(idname={'xpath': '//form[@id="mainSearch"]'})
        # 表单填入
        search_form.button_option('重置')
        search_form.button_option('更多')
        search_form.auto_fill(input_data)
        search_form.button_option('查询')